package com.jnevision.userrole.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 用户角色
 * </p>
 *
 * @author gavin
 * @since 2019-07-13
 */
@TableName("sys_user_role")
public class UserRole extends Model<UserRole> {
    private static final long serialVersionUID = -1083543251709095207L;

    @TableField("user_id")
    private String userId;

    @TableField("role_id")
    private Integer roleId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "UserRole{" + "userId=" + userId + ", roleId=" + roleId + "}";
    }
}